<!-- blok start -->
<h3 class="sidebar_title"><?=$lang['katalog']; ?></h3>
<div class="blok">
    <div id="left_menu">
    <?php 
$q = mysql_query("SELECT * FROM menu ORDER by sort DESC");
while ($rows = mysql_fetch_assoc($q))
{
$m_a[$rows['id']] = array('title' => $rows['title'], 'parent' => $rows['parent']);
}
// agar katalog mavjud bulsa
if(mysql_num_rows($q) > 0 )
{
menu(0);
}
else { echo "<p>Katalog mavjud emas</p>"; }
?>
    <ul>
      <li><a href="all.php"><?=$lang['all']; ?></a></li>
    </ul>
    </div>
</div>
<!-- blok finish -->
<!-- blok start -->
<h3 class="sidebar_title"> <?=$lang['contact']; ?> </h3>
<div class="blok">
    <div class="contact_blok">
    <p>
    <img src="themes/default/img/tel.png" alt="tel" align="left" /> 
    <?php echo $row_contact->tel; ?><br />
    <?php echo $row_contact->tel2; ?>
    </p>
    <p>
    <img src="themes/default/img/mail2.png" alt="mail" align="left" />
    <?php echo $row_contact->email; ?>
    </p>
    <p><i>Zakladka</i><br><script src="http://odnaknopka.ru/ok2.js" type="text/javascript"></script></p>
    </div>
</div>
<!-- blok finish -->
<!-- blok start -->
<h3 class="sidebar_title"> <?=$lang['news']; ?> </h3>
<div class="blok">
<ul class="list">
<?php 
sidebar_news();
?>
</ul>
</div>
<!-- blok finish -->
<!-- blok start -->
<h3 class="sidebar_title"><?=$lang['partner']; ?> </h3>
<div class="blok">
<?php 
echo stripslashes($row_contact->hamkor);
?>
</div>
<!-- blok finish -->